﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CLRviaCsharp
{
    class A
    {
        public virtual void Dail()
        {
            Console.WriteLine("a dail");
            con();
        }

        public virtual void con()
        {
            Console.WriteLine("a con");
        }
    }

    class B : A
    {
        public override void Dail()
        {
            Console.WriteLine("b dail");
            con();
            //base.Dail();
        }

        public override void con()
        {
            Console.WriteLine("b con");
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            B b = new B();
            b.Dail();
            Console.Read();
        }
    }
}
